package com.qyc.service;

import com.qyc.dto.AddOrUpdateIndexRecordDTO;
import com.qyc.pojo.IndexRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qyc.utils.ResponseResult;

import java.util.List;

/**
* @author qinyc
* @description 针对表【index_record(动物指标记录表)】的数据库操作Service
* @createDate 2023-06-25 21:00:24
*/
public interface IndexRecordService extends IService<IndexRecord> {

    /**
     * @Author qinyc
     * @Description  分页多条件查询指标记录
     * @version: v1.0
     * @Date 23:51 2023/6/25
     **/
    ResponseResult queryPage(Integer pageNum, Integer pageSize, Integer startWeight, Integer endWeight);

    /**
     * @Author qinyc
     * @Description  新增或修改指标
     * @version: v1.0
     * @Date 10:57 2023/6/26
     **/
    ResponseResult saveOrUpdate(AddOrUpdateIndexRecordDTO addOrUpdateIndexRecordDTO);

    /**
     * @Author qinyc
     * @Description  根据id删除指标记录
     * @version: v1.0
     * @Date 11:23 2023/6/26
     **/
    ResponseResult deleteById(Integer irdId);

    /**
     * @Author qinyc
     * @Description  批量删除指标记录
     * @version: v1.0
     * @Date 11:41 2023/6/26
     **/
    ResponseResult deleteByIdAll(List<Integer> irdIds);
}
